/**
 * 
 */

var nowDate = new Date();
document.write(nowDate.toString());

var nowDate = Date.now();
document.write(nowDate);




//
//var d = new Date();
//
//var fin = new Date(2013,9,25,8,0);
//
////
//
//alert(getDueString(fin,d));
//
//
//function getDueString(due,date)
//{
//	alert(due);
//	alert(date);
//	
//	
//var s= " ";
//var min_ms =1000*60;
//var hour_ms = min_ms*60;
//var day_ms = hour_ms * 24;
//
//	
//var diff = due.getTime()-date.getTime();
//
//var day = Math.floor(diff/day_ms);
//
//if(day>0)
//	{
//	
//	s +=day+"天";
//	
//	diff= diff - day*day_ms;
//	
//	
//	}
//var hour = Math.floor(diff/hour_ms);
//
//if(hour>0)
//{
//s += hour + "小時";
//diff = diff - hour * hour_ms;
//}
//
//var min = Math.floor(diff/min_ms);
//if(min>0)
//	{
//	
//	s+=min+"分";
//	
//	}
//
//
//
//return s;
//
//
//
//};


/**
var d = new Date();
var days = new Array("日","一","二","三","四","五","六");
//alert(d);
//alert(d.getFullYear() +"/"+(d.getMonth()+1)+"/"+d.getDate() + " "+getHours()+":"+getMillseconds());
alert(d.getFullYear() +"/"+(d.getMonth()+1)+"/"+d.getDate() + " "+
		d.getHours()+":"+d.getMinutes()+":"+d.getSeconds() +"("+days[d.getDay()]+")");
*/
/**
var s = "Jackson";
alert(s.length );
alert(s.substring(0,3));
alert(s.charAt(4));

var firstName = "Jack";
var lastName;
name;
var age = 25;
age = 24.5;
age= "abc";
married = true;
alert (lastName);
alert(firstName);
alert(age);


alert(min(3,5));
alert(min());

//function min (a,b){
//	
//	if(a<b){
//		return a;
//	}else
//		return b;
//	
//}

//function test(){
//	alert ("abc");
//}
//var t = test();
//var m = min ();
//
//alert (m);


//function Student (math,english,chinese){
//	this.math = nath;
//	this.english = english;
//	this.chinese = chinese;
//	this.average = function (){
//		return (math + english + chinese)/3;
//	}
//}
//
//	var stu = new Student (100,95,93);
//	alert(stu,averge());

	*/
